package cate.game.role.world.invite.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBWorld;
import cate.game.role.Role;
import cate.game.role.world.invite.comm.Invitee;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "受邀人数据发生改变的通知")
public class InviteeChangedResp implements MsgOutput {

    @NoteField("受邀人列表")
    public List<Invitee> inviteeList;

    @Override
    public MsgConfig conf() {
        return MsgIdBWorld.INVITEE_CHANGED_RESP;
    }

    public static void notice(Role role) {
        InviteeChangedResp resp = new InviteeChangedResp();
        resp.inviteeList = role.getBase().invite.inviteeList;
        resp.sendNow(role);
    }
}
